<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php $attributes = array('name' => 'formSelectCharacter'); ?>
        <?php echo form_open('loader/selectCharacter', $attributes); ?>
        <?php foreach ($characters as $character) { ?>
            <?php echo form_radio('selected_character', $character->id); ?><?php echo $character->name; ?><br />
            <ul>
                <li>Race :&nbsp;
                    <?php if ($character->race == 1) { ?>
                    Dragel
                    <?php } else { ?>
                    Human
                    <?php } ?>

                </li>
            </ul>
        <?php } ?>
        <?php echo form_submit('submitSelection', 'Play'); ?>
        <?php echo form_close(); ?>
    </body>
</html>
